package com.ym.medical.domain.entity;

import com.ym.common.constant.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Table;
import java.util.Date;

/**
 * 评价记录对象 comment_record
 *
 * @author ym
 * @date 2020-08-20
 */
@ApiModel("评价记录-实体")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "comment_record")
public class CommentRecordEntity extends BaseEntity{

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    @ApiModelProperty("订单id")
    private Long orderId;

    /**
     * 评价内容
     */
    @ApiModelProperty("评价内容")
    private String commentBody;

    /**
     * 评价星数
     */
    @ApiModelProperty("评价星数")
    private Integer commentStarnumber;

    /**
     * 评价人
     */
    @ApiModelProperty("评价人")
    private Long commentPerson;

    /**
     * 被评价人
     */
    @ApiModelProperty("被评价人")
    private Long commentAppperson;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createTime;

    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    private Date modifyTime;

}
